//
//  JSMLeavingHeaderShowCityDetailsToolsModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/2.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHeaderShowCityDetailsToolsModel.h"

@implementation JSMLeavingHeaderShowCityDetailsToolsModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"url"]) {
        self.urlStr = value;
    }
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.urlStr = [aDecoder decodeObjectForKey:@"urlStr"];
        self.type = [aDecoder decodeIntForKey:@"type"];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.urlStr forKey:@"urlStr"];
    [aCoder encodeInteger:self.type forKey:@"type"];
}

@end
